package com.kim.common.utilcom.snowflake;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 雪花算法配置类
 */
@Data
@ConfigurationProperties(SnowflakeProperties.PREFIX)
public class SnowflakeProperties {

    /**
     * 认证配置前缀{@value}
     */
    public final static String PREFIX = "surge.snowflake";

    /**
     * 终端ID
     */
    private Long workerId;

    /**
     * 数据中心ID
     */
    private Long dataCenterId;
}
